package cn.kone.pojo.dto;

import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@Accessors(chain = true)
public class NewOrderDTO {

    private BigDecimal distance;
    private BigDecimal mileage;
    private BigDecimal favourFee;
    private BigDecimal expectsFee;
    private String from;
    private String to;
    private String orderNo;


    public String getText() {
        StringBuilder sb = new StringBuilder();

        sb.append("您有新的订单").append("从").append(getFrom()).append("到")
                .append(getTo()).append("距离你").append(getDistance()).append("公里")
                .append("全程").append(getMileage()).append("公里").append("订单预估价").append(getExpectsFee()).append("元");

        return sb.toString();
    }

}
